const express = require('express')
const app = express();

//引入子路由文件
const userRouter = require('./user')
const prouductRouter = require('./product')
const userinfoRouter = require('./userInfo')
const receiverAdsRouter = require('./receiverAds')

//注册子路由
app.use('/user', userRouter)
app.use('/product', prouductRouter)
app.use('/mine', userinfoRouter)
app.use('/address', receiverAdsRouter)

module.exports = app
